home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / enigma / earcd / comm / comm5 / nwsbrkr5.lha / Reader / NewsBreaker / src / Protos.h < prev   
C/C++ Source or Header  |  1996-12-16  |  4KB  |  133 lines

  1. /*
  2.  * Protos.h -- Funktions-Prototypen
  3.  *
  4.  */
  5.  
  6.  
  7.  
  8. /*** APP ***/
  9. /* MainLoop.c */
  10. static void MainLoop (void);
  11.  
  12. /* Lists.c */
  13. BOOL AddNameNum (struct List *list, UBYTE * name, UMSMsgNum num);
  14. BOOL AddName (struct List *list, UBYTE * name);
  15. int CountMyListNodes (struct List *list);
  16.  
  17. /* Tools.c, todo */
  18. struct Library *OpenLib (UBYTE * libName, unsigned long version);
  19. BOOL CheckErr (void);
  20. void ErrorBeep (void);
  21. char *strdup (const char *s);
  22. void ActivateTabGadget (struct Window *window);
  23. ULONG
  24. SetGadgetAttrsX (struct Gadget *gadget, struct Window *window,
  25.          struct Requester *requester, unsigned long tag1,...);
  26.  
  27.  
  28.  
  29.  
  30. /*** GUI ***/
  31. /* AddButtons.c */
  32. void creategad_group(void);
  33. void creategad_message(void);
  34.  
  35. /* ListView.c -- BOOPSI itemlist-listview Interface Routinen, todo!!!*/
  36. int GetMyListNames (struct List *list, Gadget * gad);
  37. int GetSelectedListEntry(Gadget * gad);
  38. ULONG KillListEntries(Gadget * gad);
  39.  
  40. #define NEXT_ENTRY 1
  41. #define PREV_ENTRY 2
  42. ULONG MarkListEntry(Gadget * listgad, ULONG command);
  43.  
  44. /* Menu.c */
  45. BOOL CreateMyMenus (void);
  46. void RemoveMyMenus (void);
  47.  
  48. /* Dialogs.c */
  49. int Dialog (STRPTR to, STRPTR toa, STRPTR subj, int type);    /* Dialogfenster, type legt Gestalt fest */
  50. int ShowReq (STRPTR title, STRPTR text, STRPTR gads);    /* mit Defaults für title, Text, gads */
  51. int ShowError (STRPTR error);    /* Ein Error-Requester/Dialogfenster */
  52.  
  53. /* gui/Help.c */
  54. void OpenAmigaGuide (struct Window *hostwin);
  55. void OpenDatatypeWindow (struct Window *hostwin, STRPTR filenames[]);
  56. void OpenAbout (struct Window *hostwin);
  57.  
  58.  
  59.  
  60.  
  61. /*** DBG ***/
  62. /* ShowGlobals.c */
  63. void ShowGlobals (int level);
  64.  
  65. /* ShowUMSField.c */
  66. void ShowUMSField (UMSUserAccount account, UMSMsgNum MsgNum);
  67. char *UMS2AmigaDate (ULONG RecTime, char *buffer);
  68. char *ParseGlobalFlags (ULONG flags, char *buffer);
  69. char *ParseUserFlags (ULONG flags, char *buffer);
  70. char *ParseLocalFlags (ULONG flags, char *buffer);
  71.  
  72.  
  73.  
  74.  
  75. /*** FEA ***/
  76. /* fea/Features.c */
  77. int CatchUpCurrentGroup (void);    /* Setzt das OLD-Userflag bei allen Msg in der aktuellen Gruppenliste */
  78. int DeleteUMSMessage (UMSUserAccount account, UMSMsgNum num);    /* löscht eine (1) Nachricht */
  79. int SaveUMSMessage (UMSUserAccount account, UMSMsgNum num);
  80. int PrintUMSMessage (UMSUserAccount account, UMSMsgNum num);
  81.  
  82.  
  83.  
  84.  
  85. /*** UMS ***/
  86. /* Login.c */
  87. BOOL Login (void);
  88.  
  89. /* ReadConfig.c */
  90. BOOL ReadConfig (void);
  91.  
  92. /* UMSGetMsgNums.c */
  93. UMSMsgNum GetNewMsg (UMSUserAccount p_account);
  94. UMSMsgNum GetNextMsg (UMSUserAccount account, UMSMsgNum AktNum);
  95. UMSMsgNum GetPrevMsg (UMSUserAccount account, UMSMsgNum AktNum);
  96. UMSMsgNum GetFirstMsg (UMSUserAccount account);
  97. UMSMsgNum GetLastMsg (UMSUserAccount account);
  98.  
  99. /* UMSHandling.c */
  100. void FreeGroupList (void);    /* lösch eine eventuell vorhandene Gruppen-Execliste */
  101. void FreeMsgList (void);    /* lösch eine eventuell vorhandene Nachrichten-Execliste */
  102.  
  103. STRPTR SetAktMsgGroup (STRPTR name);
  104. STRPTR GetAktMsgGroup (void);
  105.  
  106. void SetGlobMsgNum (UMSMsgNum myNum);
  107. UMSMsgNum GetGlobMsgNum (void);
  108. void SetGlobMsgGroup (STRPTR group);    /* lege Namen der Gruppe fest */
  109. void SetGlobMsgList (List * MyList);
  110.  
  111. //BOOL GetNewGroup (UMSUserAccount account);
  112.  
  113. struct List * GetGroupList (UMSUserAccount account);
  114. struct List * GetMsgList (UMSUserAccount account, STRPTR group, LONG focus);
  115. int ChangeFlagsCurrentGroup (UMSSet set, UMSSet unset);        /* lowlevel Flags-Handling */
  116. void ResetNBDisplay (void);    /* freemsglist(),freegrouplist(), infobarclear() ... */
  117.  
  118. /* UMSDisplay.c */
  119.  
  120. /*-Textfield-*/
  121. BOOL DisplayTxt (Gadget * txtfld, Window * win, STRPTR text);
  122. STRPTR GetTxt(Gadget * txtfld, Window * win);
  123. void FreeTxt(STRPTR txtbuffer);
  124.  
  125. BOOL TextfieldMethods(ULONG method);
  126.  
  127. void InfoBarClear (Window * win, WORD height);
  128. BOOL InfoBarUpdate (UMSUserAccount account, UMSMsgNum num, Window * Mywindow, WORD height);
  129. BOOL DisplayMsg (Gadget * txtfld, Window * Mywindow, WORD height, UMSUserAccount account, UMSMsgNum myNum);
  130.  
  131. /* UMSWrite.c */
  132. UMSMsgNum WriteMsg (int type);
  133.